package com.mspbots.core.wise.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mspbots.core.DefaultBaseMapper;
import com.mspbots.core.wise.model.TenantRule;
import com.mspbots.cw.request.EscalationDTO;
import com.mspbots.cw.request.TenantRuleDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TenantRuleMapper extends DefaultBaseMapper<TenantRule> {

    List<TenantRuleDTO> listAnalysis(TenantRule tenantRule);

    IPage<TenantRuleDTO> pageDetail(Page<TenantRuleDTO> page, @Param("query") TenantRuleDTO tenantRuleDTO);

    TenantRuleDTO detail(TenantRuleDTO query);

    List<TenantRuleDTO> getEscalation(TenantRuleDTO query);

    List<EscalationDTO> selectEscalationParams(EscalationDTO query);
}
